#include <stdio.h>

#define NONE "\033[m"
#define RED "\033[0;32;31m"
#define LIGHT_RED "\033[1;31m"
#define GREEN "\033[0;32;32m"
#define LIGHT_GREEN "\033[1;32m"
#define BLUE "\033[0;32;34m"
#define LIGHT_BLUE "\033[1;34m"
#define DARY_GRAY "\033[1;30m"
#define CYAN "\033[0;36m"
#define LIGHT_CYAN "\033[1;36m"
#define PURPLE "\033[0;35m"
#define LIGHT_PURPLE "\033[1;35m"
#define BROWN "\033[0;33m"
#define YELLOW "\033[1;33m"
#define WHITE "\033[1;37m"

#define CLOSE "\033[0m"  //关闭所有属性
#define HIGH "\033[1m"  //设置高亮度
#define LINE "\033[4m"  //下划线
#define LIGHT "\033[5m"  //闪烁

#define fore1 "\033[30m"
#define fore2 "\033[31m"
#define fore3 "\033[32m"
#define fore4 "\033[33m"
#define fore5 "\033[34m"
#define fore6 "\033[35m"
#define fore7 "\033[36m"
#define fore8 "\033[37m"

#define back1 "\033[0;32;40m"
#define back2 "\033[0;32;41m"
#define back3 "\033[42m"
#define back4 "\033[43m"
#define back5 "\033[44m"
#define back6 "\033[45m"
#define back7 "\033[46m"
#define back8 "\033[47m"

#define UP "\033[1A" //光标上移n行
#define DOWN "\033[1B" //光标下移n行
#define RIGHT "\033[1C"  //光标右移n行
#define LEFT "\033[3D" //光标左移n行
#define LEFT1 "\033[1D" //光标左移n行
#define F3 "\033[0;0H" //设置光标位置
#define CLEAR "\033[2J" //清屏
#define CLEAN "\033[K" //清除从光标到行尾的内容
#define F4 "\033[s" //保存光标位置
#define F5 "\033[u" //恢复光标位置
#define F6 "\033[?25l" //隐藏光标
#define F7 "\033[?25h" //显示光标

void help(void)
{
    printf(RED "------------------Welcome to use the ftp------------------\n" NONE);
    printf(GREEN "|                                                        |\n" NONE);
    printf(GREEN "|   help: Display all command for the server	         |\n" NONE);
    printf(DARY_GRAY "|                                                        |\n" NONE);
    printf(DARY_GRAY "|   quit: Quit the server	    	                 |\n" NONE);
    printf(BLUE "|                                                        |\n" NONE);
    printf(BLUE "|   ls: Display all files on the ftp server              |\n" NONE);
    printf(YELLOW "|                                                        |\n" NONE);
    printf(YELLOW "|   get <file>: Download file from the ftp server        |\n" NONE);
    printf(RED "|   put <file>: Upload file to the ftp server	         |\n" NONE);
    printf(BLUE "|                                                        |\n" NONE);
    printf(BLUE "----------------------------------------------------------\n" NONE);
}


